package com.goldgov.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * filter配置类
 */
@ConfigurationProperties(prefix = "kduck.oauth2-filter")
public class FilterProperties {
    public FilterProperties() {
    }

    private List<String> ignored; //免过滤地址，过滤的地址不会走统一认证
    private String oauth2Server; //认证服务器地址
    private String clientSecret;
    private String clientId;
    private String redirectUri; //回调地址，默认为/oauth/callback

    public String getRedirectUri() {
        return redirectUri;
    }

    public void setRedirectUri(String redirectUri) {
        this.redirectUri = redirectUri;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }


    public String getClientSecret() {
        return clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }
    public String getOauth2Server() {
        return oauth2Server;
    }

    public void setOauth2Server(String oauth2Server) {
        this.oauth2Server = oauth2Server;
    }

    public List<String> getIgnored() {
        return ignored;
    }

    public void setIgnored(List<String> ignored) {
        this.ignored = ignored;
    }
}
